<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./newTemplate.xhtml">

            <ui:define name="top">
               
                
            </ui:define>

            <ui:define name="left">
                
            </ui:define>

            <ui:define name="right">
                
            </ui:define>

            <ui:define name="content">
                <f:view>
                    <h:form>
                         
                    <p:commandButton action="Evento" value="Nuevo Evento" actionListener="#{eventoBean.prepararNuevo(evt)}" ajax="false"/>
                      
                
                        <h1><h:outputText value="List"/></h1>
                        <p:dataTable value="#{eventoBean.lista}" var="item">
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="IdEventos"/>
                                </f:facet>
                                <h:outputText value="#{item.idEventos}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Event"/>
                                </f:facet>
                                <h:outputText value="#{item.event}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Date"/>
                                </f:facet>
                                <h:outputText value="#{item.date}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Time"/>
                                </f:facet>
                                <h:outputText value="#{item.time}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Location"/>
                                </f:facet>
                                <h:outputText value="#{item.location}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Usuarios Registrados"  />
                                </f:facet>
                                <h:outputText value="#{item.registeridRegister}"/>
                            </p:column>
                        </p:dataTable>
                        <img src="resources/EEE.jpg" width="767" height="600" alt="es"/>
                    </h:form>
                </f:view>

            </ui:define>

     
        </ui:composition>

    </body>
</html>
